namespace RBAC.Domain.HXJX
{
    using System;
    using System.ComponentModel.DataAnnotations.Schema;

    /// <summary>
    /// 生产工单工序明细
    /// </summary>
    [Table("ProductionWorkOrderProcess")]
    public partial class ProductionWorkOrderProcess : BaseEntity
    {
        /// <summary>
        /// 关联工单Id
        /// </summary>
        public long WorkOrderId { get; set; }

        /// <summary>
        /// 工序序号（工序顺序）
        /// </summary>
        public int SeqNo { get; set; }

        /// <summary>
        /// 工序编码
        /// </summary>
        public string? ProcessCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        public string? ProcessName { get; set; }

        /// <summary>
        /// 工作中心Id
        /// </summary>
        public long? WorkCenterId { get; set; }

        /// <summary>
        /// 工作中心名称
        /// </summary>
        public string? WorkCenterName { get; set; }

        /// <summary>
        /// 标准工时（小时）
        /// </summary>
        public decimal? StdHours { get; set; }

        /// <summary>
        /// 报工计量单位
        /// </summary>
        public string? Uom { get; set; }

        /// <summary>
        /// 计划开始时间
        /// </summary>
        public DateTime? PlanStartTime { get; set; }

        /// <summary>
        /// 计划完成时间
        /// </summary>
        public DateTime? PlanEndTime { get; set; }

        /// <summary>
        /// 转序数量
        /// </summary>
        public decimal? TransferQty { get; set; }

        /// <summary>
        /// 良品数量
        /// </summary>
        public decimal? GoodQty { get; set; }

        /// <summary>
        /// 不良数量
        /// </summary>
        public decimal? ScrapQty { get; set; }

        /// <summary>
        /// 在制数量
        /// </summary>
        public decimal? WipQty { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}
